﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="settings.aspx.cs" Inherits="admin_settings" %>
<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>


<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Settings</title>
    
     <link href="../styles/style.css" rel="stylesheet" type="text/css" /> 
    <link type="text/css" href="../css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" />
     <link type="text/css" href="../css/validationEngine.jquery.css" rel="stylesheet" />
    <script src="../js/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validationEngine.js" type="text/javascript"></script>
      <script type="text/javascript">
          $(function() {
              $("input[id$=txtFromDate]").datepicker({
                  yearRange: "+0:+0",
                  dateFormat: 'dd-mm-yy',
                  changeMonth: true,
                  changeYear: false
              });             
          });

       
    </script>
</head>
<body>
       <form id="form1" runat="server">

    <div class="wrapper">
         <div id="header">
		<h1 class="logo">
        <a href="index.aspx">
        	<img src="../images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
         <div class="login_zone" >
                Username:<asp:Literal ID="lUsername" Text="" runat="server" />
                <br />
                 <asp:LinkButton ID="lnkLogout" runat="server" Text="Logout" 
                    onclick="lnkLogout_Click" /> | <a href="../nghiphep/users/change_pass.aspx">Change password</a>
        </div>
        </div>


<div id="nav">
      <div style="margin-bottom:20px;width:340px;float:left;">
              <ul class="breadcrumb">
        <li>
            <a href="index.aspx" title="Home">
         
                 <img src="../images/home.png" width="24" height="23" border="0" align="left" style="margin-top:2px;" class="home" />
      
            </a>
              
            </li>
            <li>
            <a href="index.aspx"   title="homepage">
                Homepage
                </a>
            </li>
        <li>
            
              Số ngày nghỉ bắt buộc trong năm
            
       </li>
      
     </ul>
     </div>
        </div>
    <div class="main_content2">
       <div style="margin-top:-8px;">
             <img src="../images/option.png" width="900" height="77" />
           </div>
           <br /><br />
           
           <table id="table_nghi_phep" align="center">
            <tr>
              <td align="left" colspan="2">
               
    
                  Nhập số ngày nghỉ bắt buộc trong năm</td>
               
                </tr >
            <tr>
              <td  align="left" height="42" >
                    Nghỉ từ ngày:</td>
               
               <td align="left">
                   <div style="width:219px; float:left;">
                    <asp:TextBox ID="txtFromDate" runat="server" CssClass="box2" TabIndex="1" 
                        Width="80px"></asp:TextBox>
                       </div>
                     <div style="width:100px; float:left;padding-top:12px;">
                         số&nbsp; ngày:
                         
                     </div>
                     <div style="float:left;width:140px; text-align:left;">
                    <asp:TextBox ID="txtSoNgay" runat="server" CssClass="box2" TabIndex="1" 
                        Width="80px"></asp:TextBox>
                    
                        </div>
                        
            </td>
               
                </tr>
            <tr>
              <td align="left" valign="bottom" style="height:24px;padding-top:10px;padding-bottom:10px">
                    Note:</td>
               
               <td>
               
                <asp:TextBox ID="txtNote" runat="server" class="box2" Width="400px" />
                </td>
                </tr>
            <tr>
              <td align="left" valign="bottom">
                    &nbsp;</td>
               
               <td align="left">
               
                  
                   &nbsp;</td>
                </tr>
           </table>
        <div style="margin:0 auto;">
                  
                 <asp:Button ID="btnSave" runat="server" CssClass="button white" Text="Add" 
                       Width="80px" onclick="btnSave_Click" />
               
                   &nbsp;<asp:Button ID="btnBack" runat="server" CssClass="button white" Text="Back" 
                       Width="80px"   />
        </div>
        <div align="center">
            
        
            <br />
            <dx:ASPxGridView ID="dgNghiBatBuoc" runat="server" AutoGenerateColumns="False" 
                onrowcommand="dgNghiBatBuoc_RowCommand" KeyFieldName="id">
                <Columns>
                    <dx:GridViewDataTextColumn Caption="Operators" VisibleIndex="0" Width="80px">
                        <DataItemTemplate>
                         <asp:LinkButton 
                                 runat="server" 
                                 ID="btnXoa" 
                                 Text="Delete"                             
                                 CommandName="XoaNghiBatBuoc"
                              >
                              </asp:LinkButton>
                        </DataItemTemplate>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="id" VisibleIndex="1" Width="40px" 
                        FieldName="id" Visible="False">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Nghỉ từ ngày" VisibleIndex="2" 
                        Width="120px" FieldName="tungay">
                       <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy">
                           </PropertiesTextEdit>
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Số ngày nghỉ" VisibleIndex="3" 
                        Width="120px" FieldName="songay">
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Note" VisibleIndex="4" Width="240px" 
                        FieldName="note">
                    </dx:GridViewDataTextColumn>
                </Columns>
            </dx:ASPxGridView>
            
        
        </div>
        
    
     </div>
     
</div>     
     </form>
</body>
</html>
